package com.galina.notebook.test;

import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.PersistenceUnit;

import org.apache.openejb.api.LocalClient;
import org.junit.Before;

@LocalClient
public abstract class AbstractTestCaseSE extends AbstractTestCase {
	
    @PersistenceUnit(unitName = "notebook")
    public EntityManagerFactory emf;
    
    public EntityManager em;

	@Before
	public void setUp() throws Exception {
		super.setUp();
		setTransactionType("RESOURCE_LOCAL");
		initialContext.bind("inject", this);
		em=emf.createEntityManager();
	}
	
}
